package me.zhengjie.inter.service;

import com.alibaba.fastjson.JSONObject;
import me.zhengjie.business.domain.Zhsq;
import me.zhengjie.business.service.dto.ZhsqDto;
import me.zhengjie.business.service.dto.ZhsqQueryCriteria;
import org.springframework.data.domain.Pageable;

import javax.transaction.Transactional;
import java.util.List;
import java.util.Map;

/**
 * @description 服务接口
 * @author xiahongbo
 * @date 2022-07-10
 **/
public interface MpZhsqService {

    /**
     * 查询数据分页
     * @param criteria 条件
     * @param pageable 分页参数
     * @return Map<String,Object>
     */
    Map<String, Object> queryAll(ZhsqQueryCriteria criteria, Pageable pageable);


    List<ZhsqDto> queryAll(ZhsqQueryCriteria criteria);

    Map<String, String> queryDyqx(Long id);

    /**
     * 编辑
     * @param resources /
     */
    ZhsqDto create(Zhsq resources, String ids);

    @Transactional
    ZhsqDto updateZhsq(Zhsq resources, String ids);

    String queryScore(String[] adlIds);

    /**
     * 新增居家照护校验
     * @param sfzh
     * @return
     */
    JSONObject checkCreate(String sfzh);

    /**
     * 校验参保信息
     * @param sfzh
     * @return
     */
    JSONObject checkCbInfo(String sfzh);


    /**
     *
     * @param userId
     * @return
     */
    List<Long> queryZhidsByUserId(Long userId);

    Zhsq queryByBisZhsqId(Long valueOf);

    void updateZhsqPayStatus(String payStatus, Long bisZhsqId);

}
